		(function() {
			var evalute = angular.module('evalute',[]);
			evalute.factory('evaluteFactory', ['$http', function($http) {
				 $scope.evaluteList=[];
			}]);
			evalute.controller('evaluteController', ['$scope','$http',function($scope,$http,evaluteFactory) {
				$scope.curr=1;
				//全部订单列表展示
		       
				$scope.allList = function(pageNum,pageSize){
					$http.get('order/list.do',{
						params:{
							pageNum:pageNum,
							pageSize:pageSize
						}
					}).
					then(function(response) {
						 $scope.evaluteList=response.data;
						 $scope.pageNo=$scope.evaluteList.pageNo;
						 $scope.totalPage=$scope.evaluteList.totalPage;
						 $scope.status=0;
					 for(var i in $scope.evaluteList.results){
							 console.info($scope.evaluteList.results[i].status);
							 if($scope.evaluteList.results[i].status==1){
								 $scope.evaluteList.results[i].html2="取消订单";
								 $scope.evaluteList.results[i].html1="去付款";
								 $scope.evaluteList.results[i].html3="等待买家付款";
							 }else if($scope.evaluteList.results[i].status==4){

								 $scope.evaluteList.results[i].html1="确认收货";
								 $scope.evaluteList.results[i].html2="";
								 $scope.evaluteList.results[i].html3="卖家已发货";
							 }else if($scope.evaluteList.results[i].status==5){

								 $scope.evaluteList.results[i].html1="去评价";
								 $scope.evaluteList.results[i].html2="";
								 $scope.evaluteList.results[i].html3="交易成功";
							 }else{
								 $scope.evaluteList.results[i].html1="催单";
								 $scope.evaluteList.results[i].html2="";
								 $scope.evaluteList.results[i].html3="正在发货";
							 }
							 
						 } 
						console.info( response.data);
					});
				}
				
			//发表评价
			$scope.deleteOrder = function(orderId){
					 var con = confirm('确定要取消订单吗？');
					 if(con){
						 $http.get('order/uclose.do',{
								params:{
									id:orderId
								}
							}).
							then(function(response) {
								
							});
				
					
				}
			}
			
			}
			]);
			

			
			
			
			
		})();
		